package cn.brilliantfuture.commentry.lockers;

import javax.ejb.Local;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

/**
 * 
 * Title: Communication Entry
 * 
 * Author:  LiTian  
 *
 * Date: 2013-6-13
 * 
 * Description:
 * 
 */
@Local
public interface DeliverStoreMessageLocal {
	
	/**
	 * 创建收储预定信息
	 * @param userId 会员ID
	 * @param groupId 用户组ID
	 * @param lockersId 配送柜ID
	 * @param serviceType 业务类型
	 * @param storeType 存储类型
	 * @param gridType 仓门类型
	 * @param beginTime 开始时间
	 * @param endTime 结束时间
	 * @return JSONObject
	 */
	public JSONObject createStoreReserve(int userId, int groupId, int lockersId, int serviceType, int storeType, int gridType, long beginTime, long endTime);
	
	/**
	 * 取消预定计划
	 * @param storeCode 收储码
	 * @return boolean
	 */
	public boolean createStoreUnreserve(String storeCode);
	
	/**
	 * 获取配送点信息
	 * @return JSONArray
	 */
	public JSONArray getStorePointList();
	
	/**
	 * 
	 * @param lockersId
	 * @return JSONArray
	 */
	public JSONArray getStoreGridConfig(Integer lockersId);
	
	/**
	 * 
	 * @param storeCode
	 * @return JSONObject
	 */
	public JSONObject getStoreInfo(String storeCode);
}
